package com.briup.estore.mapper;

import com.briup.estore.bean.Order;
import com.briup.estore.bean.ext.OrderExtend;
import com.briup.estore.dto.OrderPaySuccessDTO;
import com.briup.estore.dto.OrderSearchDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {
    void save(Order order);

    //List<OrderExtend> selectOrderDetailByUserId(int userId, OrderSearchDTO orderSearchDTO);


    List<OrderExtend> selectOrderDetailByUserId(@Param("userId") Integer userId, @Param("orderSearchDTO") OrderSearchDTO orderSearchDTO);


    void paySuccess(OrderPaySuccessDTO paySuccessDTO);


    Order orderMessage(String orderId);

    void updateOrderShou(String orderId);
}
